package com.apex.utils;

public class ConfigPackage {

    private String engine;

    private static String packagePrefix;

    private static String upperEnginx;

    public ConfigPackage(String engine) {
        this.engine = engine;
        packagePrefix = "com.apex.";
        upperEnginx = engine.substring(0, 1).toUpperCase() + engine.substring(1);
    }


    public String sourcePackage() {
        return packagePrefix + engine + ".source";
    }


    public String transformPackage() {
        return packagePrefix + engine + ".transform";
    }


    public String sinkPackage() {
        return packagePrefix + engine + ".sink";
    }

    public String baseSourcePackage() {
        return packagePrefix + ".base" + upperEnginx + "Source";
    }


    public String baseTransformPackage() {
        return packagePrefix + ".base" + upperEnginx + "Transform";
    }

    public String baseSinkPackage() {
        return packagePrefix + ".base" + upperEnginx + "Sink";
    }
}
